﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Syspetro.Aliyun
{
    public class EmailOptions
    {
        public string Region { get; set; } = "ap-southeast-1";
        public string Sender { get; set; } = "admin@gmp.com";
        public string Alia { get; set; } = "GMP";
        public string Tag { get; set; } = "GMP";
        public string AppKey { get; set; } = "LTAI4GD67FLjVZNUrEaFrGKo";
        public string AppSecret { get; set; } = "HPBGpGhu0EsOny50XNmdFjD0bHEc2W";
        public bool Enabled { get; set; } = false;
        /// <summary>
        /// 限制次数
        /// </summary>
        public int PerLimit { get; set; } = 6;
        /// <summary>
        /// 限制时间内(小时)
        /// </summary>
        public int PerLimitHours { get; set; } = 24;
        /// <summary>
        /// 有效时间(分钟)
        /// </summary>
        public int ValidTime { get; set; } = 3;
        public string Templete { get; set; } = "尊敬的用户，您的验证码{0}，该验证码{1}分钟内有效，请妥善保管，切勿泄漏于他人！";
    }
}
